
#把文件c.txt复制为d.txt
# 思路: 把 c.txt打开,读取全部内容,
# # 把d.txt的用w方法打开,把内容写入


file= open(r"E:\python\c.txt","r")
txt =file.read()
file.close()
file = open(r"E:\python\d.txt","w")
file.write(txt)
file.close()